﻿using Common.Core.Exceptions;

namespace NetByDocker.Controllers
{
    /// <summary>
    /// 负载测试
    /// </summary>
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class LoadTestController : ControllerBase
    {
        /// <summary>
        /// 异常抛出测试
        /// </summary>
        /// <returns></returns>
        /// <exception cref="ParameterException"></exception>
        [HttpGet]
        public string ThrowException()
        {
            throw new ParameterException("参数格式不对");
        }
    }
}